﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace SABnzbdNET.Model
{
    [Serializable, XmlRoot("slot")]
    public class Job
    {
        [XmlElement(ElementName = "nzo_id")]
        public string Id { get; set; }

        [XmlElement(ElementName = "status")]
        public string Status { get; set; }

        [XmlElement(ElementName = "filename")]
        public string Title { get; set; }
        
        [XmlElement(ElementName = "mb")]
        public decimal Size { get; set; }
        
        [XmlElement(ElementName = "mbleft")]
        public decimal SizeRemaining { get; set; }
        
        [XmlElement(ElementName = "percentage")]
        public int Progress { get; set; }
        
        [XmlElement(ElementName = "timeleft")]
        public string TimeLeft { get; set; }
        
        [XmlElement(ElementName = "eta")]
        public string Eta { get; set; }

        [XmlElement(ElementName = "cat")]
        public string Category { get; set; }

        [XmlElement(ElementName = "priority")]
        public string Priority { get; set; }

        [XmlElement(ElementName = "unpackopts")]
        public int Processing { get; set; }
    }
}
